import request from '@/utils/request'

// 获取用户信息
export function getStudentInfo() {
    return request({
        url: '/student/get-info',
        method: 'get'
    })
}

export function changeContactInfo(name, phone, email) {
    const data = {
        name,
        phone,
        email
    }
    return request({
        url: '/student/change-info',
        method: 'post',
        data: data
    })
}

export function getSummary() {
    return request({
        url: '/student/get-summary',
        method: 'get'
    })
}

export function addSummary(para) {
    return request({
        url: '/student/add-summary',
        method: 'post',
        data: para
    })
}

export function getResearch() {
    return request({
        url: '/student/get-research',
        method: 'get'
    })
}

export function addResearch(params) {
    return request({
        url: '/student/add-research',
        method: 'post',
        data: params
    })
}

export function deleteResearch(param) {
    return request({
        url: '/student/delete-research',
        method: 'post',
        data: param
    })
}

export function getPractice() {
    return request({
        url: '/student/get-practice',
        method: 'get'
    })
}

export function addPractice(params) {
    return request({
        url: '/student/add-practice',
        method: 'post',
        data: params
    })
}

export function deletePractice(param) {
    return request({
        url: '/student/delete-practice',
        method: 'post',
        data: param
    })
}

export function getPosition() {
    return request({
        url: '/student/get-position',
        method: 'get'
    })
}

export function addPosition(params) {
    return request({
        url: '/student/add-position',
        method: 'post',
        data: params
    })
}

export function deletePosition(param) {
    return request({
        url: '/student/delete-position',
        method: 'post',
        data: param
    })
}
